﻿namespace FullSearch.Common
{
    public class DocFieldEntity
    {
        /// <summary>
        /// 是否是主键
        /// </summary>
        public bool IsKey { get; set; } = false;

        /// <summary>
        /// 字段名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 字段值
        /// </summary>
        public object Value { get; set; }

        /// <summary>
        /// 值得类型 GetType().Name
        /// </summary>
        public string ValueType { get; set; }

        /// <summary>
        /// 是否存储
        /// </summary>
        public bool Stored { get; set; } = true;

        /// <summary>
        /// 是否分词
        /// </summary>
        public bool Analyzer { get; set; } = false;

        /// <summary>
        /// 是否启动docvalues
        /// </summary>
        public bool DocValues { get; set; } = true;

        /// <summary>
        /// 是都使用facet
        /// </summary>
        public bool Facet { get; set; } = false;

        /// <summary>
        /// 是否空间索引
        /// </summary>
        public bool Geo { get; set; } = false;

    }
}
